package com.Service;

import com.Dao.UpdateBookInfoDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

@Service
@Slf4j
public class PraiseService {
@Autowired
private UpdateBookInfoDao updateBookInfoDao;
    public void updatePraise(String praiseNum,String remarkId) throws SQLException {
        int id=Integer.parseInt(remarkId);
        int num=Integer.parseInt(praiseNum);
      updateBookInfoDao.updatePraiseQuantity(num,id);
    }
}
